class Cat:
    CatCount = 0

    def __init__(self, name, tili):
        self.name = name
        self.tili = tili
        print("我是{0}猫".format(self.name))

    def play(self):
        self.tili -= 2
        print("{0}猫在玩，当前体力剩余{1}".format(self.name, self.tili))

    def sleep(self):
        self.tili += 5
        print("{0}猫在睡觉，当前体力剩余{1}".format(self.name, self.tili))


catTemp = Cat("Chao", 10)
catTemp.play()
catTemp.sleep()
